#include "my_httpserver.hpp"
#include "log.hpp"

#include <iostream>
#include <memory>
#include <pthread.h>

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        std::cout << "./xxx port" << std::endl;
        exit(0);
    }
    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<HttpServer> hs(new HttpServer(port));
    hs->Start();

    return 0;
}